package com.shangze.test.ui.activity;

import android.os.Bundle;

import com.shangze.test.R;
import com.shangze.test.base.BaseActivity;

/**
 * 闪屏页
 */
public class SplashActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        new Thread(new Runnable() {
            @Override
            public void run() {
                try {
                    Thread.sleep(2000);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
                MainActivity.startActivity(SplashActivity.this);
                finishActivity();
            }
        }).start();
    }

    @Override
    public void initView() {

    }

    @Override
    protected int provideContentViewId() {
        return R.layout.activity_splash;
    }

}
